const mos=require('mongoose')

mos.connect('mongodb://localhost:27017/news')

mos.connection.on('open',()=>{
  console.log('启动成功');
})
mos.connection.on('error',()=>{
  console.log('启动失败');
})

module.exports=mos